<?php
defined( '_VALID_MOS' ) or die('<script>window.location.href="http://www.kinifurniture.com";</script>');
$dbh = new GenericDatabaseClass();
$functions = new auction_functions($dbh);

$qry="select * from news where news_type='A' AND status='Y' limit 0,5";

$res=$dbh->query($qry);
//$row=mysql_fetch_object($res);

$agenda='<ul>';




while($row=mysql_fetch_object($res))
{
	if ($row->target=='B') $target='_blank'; else $target='_self';
	if ($row->url!='') {
		$news='<a target="'.$target.'" href="'.$row->url.'">'.$row->contents.'</a>';
	} else {
		$news=$row->contents;
	}
	$agenda.='<li>'.$news.'</li>';
}		

$agenda.='</ul>';
?>